<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/webCommon/webCommon.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>学院添加</title>

<script type="text/javascript" src="plugins/layui/layui.js"></script>
		<script>
			layui.use(['form', 'layedit', 'laydate'], function() {
				var form = layui.form(),
					layer = layui.layer,
					layedit = layui.layedit,
					laydate = layui.laydate;
				//自定义验证规则
				form.verify({
						collegeName: function(value) {
							if(value.length <= 0) {
								return '学院名称不能为空啊';
							}
						}
				});
				 //监听提交
				form.on('submit(tijiao)', function(data) {
					layer.alert(JSON.stringify(data.field), {
						title: '最终的提交信息'
					})
				});
			});
		</script>

</head>

<body>

<div class="place">
	    <span>位置：</span>
	    <ul class="placeul">
		    <li><a href="#">首页</a></li>
		    <li><a href="#">学院管理</a></li>
		    <li><a href="#">学院-添加</a></li>
	    </ul>
	    </div>
	<div style="margin: 15px;">
		 <form class="layui-form" action="<%=basePath%>/come/SysCollege_add.action">
			<div class="layui-form-item">
				<label class="layui-form-label">学院名称</label>
				<div class="layui-input-inline">
					<input type="text" name="collegeName" lay-verify="collegeName" autocomplete="off" placeholder="学院名称" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
					<div class="layui-input-block">
						<button id="tijiao" class="layui-btn" lay-filter="tijiao" lay-submit="">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
		</form>
	</div>
</body>
</html>
